'''
Created on Aug 16, 2011

@author: rarakar
'''
import nltk, re
#from AsjpStats import ethnlangdict
alphabet={}
ethngrps = nltk.defaultdict()
concepts = nltk.defaultdict()
EXTINCT_INDEX = 3

from asjp_util import cleanRow, invertDict, processASJPWord, merge_1, readASJPdatesfile, readEthnDatesfile, getFamStats, readASJPEthn, readASJPSpecified, getMeanGrams, getNettleStats_1

if __name__ == '__main__':
	import codecs
	fin1 = codecs.open("data/CalibrationPoints.txt","r")
#	fin1 = codecs.open("data/Africa-Datepoints.txt","r")
	ethngrps = readEthnDatesfile(fin1)
	fin2 = codecs.open("/home/rarakar/GSLT/courses/ProgforNLP/Assn1/src/Project/data/listss13.txt", "r", "cp1252")
	(ls, eld) = readASJPSpecified(fin2)
	print len(ls["ESPERANTO"])
#	getMeanGrams(ls)
#	getNettleStats_1(ls)
#	(ls, eld) = readASJPdatesfile(fin2)
#	(ls, eld) = readASJPEthn(fin2)
#	fout = codecs.open("Africalangs-grps.txt","w")
#	fout = codecs.open("dates-langs-grps-ethnologue.txt","w")
#	fout.write("\n".join(map(str,eld.items())))
#	getMeanGrams(ls)
	getFamStats(ls)
#	print eld.items()
#	print ethnlangdict
#	for item in ethngrps.items():
#		print item
#	print ethngrps
	pass
